﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FortuneHeaven.Web.Common;
using FortuneHeavenBAL;

namespace FortuneHeaven.Web
{
    public partial class Login : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageHeader(FortuneHeavenCommon.Enum.MainPageTabType.hidden);
            }
        }
        public void LoginAcount(object sender, EventArgs e)
        {
            string error="";
            if (!AuthorityCenter.ValidateUser(this.txtUser.Text, this.txtPwd.Text, this.txtValidate.Text, ref error))
            {
                ShowCurError(error);
            }
            else
            {
                this.Response.Redirect(Page.ResolveUrl("~/Default.aspx"));
            }
        }
    }
}